import {Component, OnInit} from '@angular/core';
import {ReturnForm} from '@sb/base';
import {ShowMenus} from '../entity/show-menu';
import {MenuService} from '../service/menu.service';

@Component({
    selector: 'single',
    templateUrl: './single.component.html',
    styleUrls: ['./single.component.less']
})
export class SingleComponent implements OnInit {

    constructor(
        private menuService: MenuService) {
    }

    ngOnInit() {

        this.menuService.getShowMenu().subscribe((returnForm: ReturnForm<ShowMenus>) => {
            if (returnForm.success) {
            }
        });
    }

}
